package com.cdu.guoxinan.www.smartcom.mapper;

import com.cdu.guoxinan.www.smartcom.domian.dto.AddRequestDTO;
import com.cdu.guoxinan.www.smartcom.domian.dto.RepairApplyDTO;
import com.cdu.guoxinan.www.smartcom.domian.dto.RequestDTO;
import com.cdu.guoxinan.www.smartcom.domian.pojo.MaintenanceRequest;
import com.cdu.guoxinan.www.smartcom.domian.vo.RepairApplyVO;
import com.cdu.guoxinan.www.smartcom.domian.vo.SelectOption;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RepairApplyMapper {
    List<RepairApplyVO> getAllRepairs(RepairApplyDTO dto);

    List<SelectOption> getPriorityOptions();

    List<SelectOption> getStatusOptions();

    int addRepairApply(AddRequestDTO addRequestDTO);

    int updateRepairApply(RequestDTO requestDTO);

    int deleteRepairApply(Long requestId);

    int deleteBatch(Integer[] requestIds);
}
